import Vue from 'vue'

let ageMoney = Vue.filter('ageMoney', function(val) {
	let valNum=parseInt(val)
	switch (true) {
		case valNum <= 29:
			valNum=35
			break;
		case 30 <= valNum <= 39:
			valNum=30
			break;
		case 40 <= valNum <= 49:
			valNum=20
			break;
		case 50 <= valNum <= 59:
			valNum=10
			break;
	}
	return valNum
})
export default ageMoney;
